package com.itany.netclass.service;

import com.itany.netclass.entity.User;
import com.itany.netclass.exception.*;

import java.util.List;

/**
 * Author:sjy@itany.com
 * Date:21-10-12 下午5:12
 * Version:1.0-SNAPSHOT
 * Description:
 */
public interface UserService {
    public User login(String loginName, String password, String yzm, String code) throws NullSringException, CodeException, NameOrPasswordException, ServiceException, NoQuanXianException;

    public List<User> findAllUser(User user) throws NoLoginException, ServiceException;

    public User findUserById(String id) throws ServiceException;

    public void modifyUserBy(String id, String username, String roleName, String password, String email) throws NullSringException, TpyeException, EmailExistException, ServiceException;

    public void modifyStatusById(String id, String status) throws ServiceException;

    public List<User> sreachUserByForm(String username, String userNickname, String email, String roleName, String kaishitime, String jieshutime, String kaishitime1, String jieshutime1) throws ServiceException, NullSringException;

    public void modifyUserBy2(String id, String username, String roleName, String password, String email) throws NullSringException, TpyeException, EmailExistException, ServiceException;

    public void jianchaUsername(String nickname) throws NullSringException, ServiceException;

    public void jianchaRoleName(String roleName) throws TpyeException, ServiceException, NullSringException;

    public void jianchaEmail(String email, String id) throws TpyeException, NullSringException, ServiceException, EmailExistException;
}
